﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cricket.LinqModel;

public partial class Logout : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (Session["AdminUser"] != null)
        //    SessionManager.CurrentUser = null;

        //SessionManager.CurrentUser = null;
        //SessionManager.CurrentUser.AdminId = -1;
        //Session["CurrentAdminId"] = null;
        //SessionManager.CurrentUser.FullName = string.Empty;
        //Session["CurrentAdminName"] = null; 
        //SessionManager.CurrentUser.BetId = -1;
        //Session["CurrentBatId"] = null;
        //SessionManager.CurrentUser.UserType = -1;
        //Session["CurrentUserType"] = null;
        //Response.Cache.SetCacheability(HttpCacheability.NoCache);
        //Response.Cache.SetExpires(DateTime.Now);
        //Response.Cache.SetNoStore();
        //Response.Redirect("Login.aspx");
        HttpCookie cookie = Request.Cookies["Admin"];
        if (cookie != null)
            Response.Cookies["Admin"].Expires = DateTime.Now.AddDays(-1);

        Response.Redirect("Login.aspx");
    }
}